package com.booking.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author Qikai.Lin
 * @date 2023/4/23
 */
@Data
@TableName("audit_record")
public class AuditRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 审核记录编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 房间订单编号
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long roomOrderId;
    /**
     * 服务订单编号
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long serviceOrderId;
    /**
     * 游客编号
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long visitorId;
    /**
     * 房东编号
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long ownerId;
    /**
     * 审批状态
     */
    private String auditStatus;
    /**
     * 取消预订原因说明
     */
    private String cancelOrderReason;
    /**
     * 审批结果说明
     */
    private String result;
    /**
     * 创建时间
     */
    private LocalDateTime createdTime;
    /**
     * 更新时间
     */
    private LocalDateTime updatedTime;
}
